<div class="smart-pop">
    <div id="add_form" class="layui-form">
        <input type="hidden" name="orgNo" value="<%=orgNo%>">

        <input type="hidden" name="tempOrgState" value="<%=orgState%>">

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 机构名称</label>
            <div class="layui-input-block">
                <input type="text" name="orgName" value="<%=orgName%>" lay-verify="required" autocomplete="off"
                       placeholder="请输入机构名称" maxlength="30" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 排序</label>
            <div class="layui-input-block">
                <input type="text" name="orgOrder" value="<%=orgOrder%>" maxlength="5" lay-verify="required|number" placeholder="请输入排序" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i> 状态</label>
            <div class="layui-input-block">
                <select id="orgState" name="orgState" lay-filter="partnerList" lay-verify="required">
                    <option value="1">启用</option>
                    <option value="0">禁用</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="remark" maxlength="100" placeholder="请输入内容"
                          class="layui-textarea"><%=remark%></textarea>
            </div>
        </div>
    </div>
</div>


<script>
    // 设置 状态的选中
    var tempOrgState = $("input[name='tempOrgState']").val();
    layui.use(['form'], function () {
        var form = layui.form;
        $("#orgState").val(tempOrgState);
        //表单重新渲染
        form.render();
    });
</script>